/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lanSimulation.internals;

import lanSimulation.LogManager;

/**
 *
 * @author farooq
 */
public class Printer extends Node{

    public Printer(String name, LogManager logman){
        super(name , logman);
    }

    public boolean equalsType(Class type){
        return type.equals(Printer.class);
    }

    protected boolean printDocument(Node node, Packet packet) {

        packet.message_.print(logManager);
        return true;
	
    }

    public void printOn(StringBuffer buf){
        buf.append("Printer ");
	buf.append(this.name_);
	buf.append(" [Printer]");
    }

    public void printXmlOn(StringBuffer buf){
        buf.append("<printer>");
        buf.append(this.name_);
        buf.append("</printer>");
    }

}
